package com.jrx.anytxn.transaction.mapper.ext;

import com.jrx.anytxn.transaction.entity.TlInterestAccrualLog;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ExtTlInterestAccrualLogMapper {

    /**
     * 批量插入
     * @param list
     * @return
     */
    int batchInsert(List<TlInterestAccrualLog> list);

    /**
     * 累计日期
     * @param accrualDate
     * @return
     */
    List<TlInterestAccrualLog> selectForBatch(@Param("accrualDate") Date accrualDate);

    /**
     * 根据累计日期，账户类型查询
     * @param accrualDate
     * @return
     */
    List<TlInterestAccrualLog> selectByDateAndAccountTypeForBatch(@Param("accrualDate") Date accrualDate,
                                                                  @Param("accountTypeList") List<String> accountTypeList);



    /**
     * 根据累计日期，账户类型查询
     * @param accrualDate
     * @return
     */
    List<TlInterestAccrualLog> selectByBeginDateAndAccountType(@Param("accrualDate") Date accrualDate,
                                                               @Param("accountTypeList") List<String> accountTypeList);
}